using Gateway.Infrastructure.AutoDI;
using Gateway.IQuery.Tenant.Request;
using Gateway.IQuery.Tenant.Result;

namespace Gateway.IQuery.Tenant;

/// <summary>
/// 租户查询
/// </summary>
public interface ITenantQuery : IDependency
{
    /// <summary>
    /// 获取分页列表
    /// </summary>
    /// <param name="request"></param>
    /// <returns></returns>
    Task<PageResult<TenantDetailResult>> GetPageList(TenantPageListRequest request);

    /// <summary>
    /// 获取详情
    /// </summary>
    /// <param name="id"></param>
    /// <returns></returns>
    Task<TenantDetailResult> GetDetail(string id);
}